package net.flyinggroup.si.integration;

import net.flyinggroup.si.model.Cargo;
import org.springframework.integration.annotation.Gateway;
import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.messaging.Message;

import java.util.List;

@MessagingGateway(name = "cargoGateway", defaultRequestChannel = "cargoGWDefaultRequestChannel")
public interface ICargoGateway {
    @Gateway
    void processCargoRequest(Message<List<Cargo>> message);
}
